import request from '@/utils/request'

export function queryForList(params) {
  return request({
    url: '/admin/userGroup/queryForList',
    contentType: 'application/json;charset=utf-8',
    method: 'post',
    dataType: 'json',
    data: params,
    headers: {
      'urlType': 'admin'
    }
  })
}

export function query(params) {
  return request({
    url: '/admin/userGroup/query',
    contentType: 'application/json;charset=utf-8',
    method: 'post',
    dataType: 'json',
    data: params,
    headers: {
      'urlType': 'admin'
    }
  })
}

export function getByIdMoreDetail(dataId) {
  return request({
    url: '/admin/userGroup/getByIdMoreDetail/' + dataId,
    method: 'get',
    dataType: 'json',
    headers: {
      'urlType': 'admin'
    }
  })
}

export function createOrUpdate(params) {
  return request({
    url: '/admin/userGroup/createOrUpdate',
    contentType: 'application/json;charset=utf-8',
    method: 'post',
    dataType: 'json',
    data: params,
    headers: {
      'urlType': 'admin'
    }
  })
}

export function deleteData(dataId) {
  return request({
    url: '/admin/userGroup/delete/' + dataId,
    method: 'post',
    dataType: 'json',
    headers: {
      'urlType': 'admin'
    }
  })
}